package zheezes.util;

import java.util.Properties;
import java.util.Map.Entry;

public class SystemUtil {
	public static final int UNIX = 0;
	public static final int LINUX = 1;
	public static final int DOS = 2;
	public static final int WINDOWS = 3;

	public static final int typeof() {
		String osname = System.getProperty("os.name").toLowerCase();
		if (osname.indexOf("windows") > 0) {
			return WINDOWS;
		}
		return -1;
	}
	
    public static final void info() {
        Properties props = System.getProperties();
        for (Entry<Object, Object> e : props.entrySet()) {
            System.out.println(e.getKey() + " = " + e.getValue());
        }
    }
    
    public static void main(String[] args) {
    	info();
    }
}
